package org.example.service.impl;

import org.apache.ibatis.session.RowBounds;
import org.example.dao.IUserDao;
import org.example.entity.UserEntity;
import org.example.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService implements IUserService {
    @Autowired
    private IUserDao dao;
    @Override
    public List<UserEntity> selectList(UserEntity entity, RowBounds rowBounds) {
        return dao.selectList(entity,rowBounds);
    }
    @Override
    public Integer selectCount(UserEntity entity) {
        return dao.selectCount(entity);
    }
}
